Mock.mock("test", {
    "number|1000-9999": 100
    })
axios.get('test')
    .then(function (response) {
        document.getElementById("first").innerHTML = response.data.number;
        console.log(response.data.number)
    })
    .catch(function (error) {
        console.log(error)
    })